Optimal. Leaf size=77 \[ \frac{a^2 \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a-b x}}\right )}{4 b^{3/2}}+\frac{1}{2} x^{3/2} \sqrt{a-b x}-\frac{a \sqrt{x} \sqrt{a-b x}}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0236496, antiderivative size = 77, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {50, 63, 217, 203} \[ \frac{a^2 \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a-b x}}\right )}{4 b^{3/2}}+\frac{1}{2} x^{3/2} \sqrt{a-b x}-\frac{a \sqrt{x} \sqrt{a-b x}}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 63
Rule 217
Rule 203
Rubi steps
\begin{align*} \int \sqrt{x} \sqrt{a-b x} \, dx &=\frac{1}{2} x^{3/2} \sqrt{a-b x}+\frac{1}{4} a \int \frac{\sqrt{x}}{\sqrt{a-b x}} \, dx\\ &=-\frac{a \sqrt{x} \sqrt{a-b x}}{4 b}+\frac{1}{2} x^{3/2} \sqrt{a-b x}+\frac{a^2 \int \frac{1}{\sqrt{x} \sqrt{a-b x}} \, dx}{8 b}\\ &=-\frac{a \sqrt{x} \sqrt{a-b x}}{4 b}+\frac{1}{2} x^{3/2} \sqrt{a-b x}+\frac{a^2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{a-b x^2}} \, dx,x,\sqrt{x}\right )}{4 b}\\ &=-\frac{a \sqrt{x} \sqrt{a-b x}}{4 b}+\frac{1}{2} x^{3/2} \sqrt{a-b x}+\frac{a^2 \operatorname{Subst}\left (\int \frac{1}{1+b x^2} \, dx,x,\frac{\sqrt{x}}{\sqrt{a-b x}}\right )}{4 b}\\ &=-\frac{a \sqrt{x} \sqrt{a-b x}}{4 b}+\frac{1}{2} x^{3/2} \sqrt{a-b x}+\frac{a^2 \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a-b x}}\right )}{4 b^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.0940121, size = 75, normalized size = 0.97 \[ \frac{\sqrt{a-b x} \left (\frac{a^{3/2} \sin ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{\sqrt{1-\frac{b x}{a}}}+\sqrt{b} \sqrt{x} (2 b x-a)\right )}{4 b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 86, normalized size = 1.1 \begin{align*}{\frac{1}{2}{x}^{{\frac{3}{2}}}\sqrt{-bx+a}}-{\frac{a}{4\,b}\sqrt{x}\sqrt{-bx+a}}+{\frac{{a}^{2}}{8}\sqrt{x \left ( -bx+a \right ) }\arctan \left ({\sqrt{b} \left ( x-{\frac{a}{2\,b}} \right ){\frac{1}{\sqrt{-b{x}^{2}+ax}}}} \right ){b}^{-{\frac{3}{2}}}{\frac{1}{\sqrt{x}}}{\frac{1}{\sqrt{-bx+a}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.6777, size = 311, normalized size = 4.04 \begin{align*} \left [-\frac{a^{2} \sqrt{-b} \log \left (-2 \, b x + 2 \, \sqrt{-b x + a} \sqrt{-b} \sqrt{x} + a\right ) - 2 \,{\left (2 \, b^{2} x - a b\right )} \sqrt{-b x + a} \sqrt{x}}{8 \, b^{2}}, -\frac{a^{2} \sqrt{b} \arctan \left (\frac{\sqrt{-b x + a}}{\sqrt{b} \sqrt{x}}\right ) -{\left (2 \, b^{2} x - a b\right )} \sqrt{-b x + a} \sqrt{x}}{4 \, b^{2}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.73317, size = 209, normalized size = 2.71 \begin{align*} \begin{cases} \frac{i a^{\frac{3}{2}} \sqrt{x}}{4 b \sqrt{-1 + \frac{b x}{a}}} - \frac{3 i \sqrt{a} x^{\frac{3}{2}}}{4 \sqrt{-1 + \frac{b x}{a}}} - \frac{i a^{2} \operatorname{acosh}{\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}} \right )}}{4 b^{\frac{3}{2}}} + \frac{i b x^{\frac{5}{2}}}{2 \sqrt{a} \sqrt{-1 + \frac{b x}{a}}} & \text{for}\: \frac{\left |{b x}\right |}{\left |{a}\right |} > 1 \\- \frac{a^{\frac{3}{2}} \sqrt{x}}{4 b \sqrt{1 - \frac{b x}{a}}} + \frac{3 \sqrt{a} x^{\frac{3}{2}}}{4 \sqrt{1 - \frac{b x}{a}}} + \frac{a^{2} \operatorname{asin}{\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}} \right )}}{4 b^{\frac{3}{2}}} - \frac{b x^{\frac{5}{2}}}{2 \sqrt{a} \sqrt{1 - \frac{b x}{a}}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]